import { IUser } from "./user";

export enum GroupRole {
  member = 0,
  owner = 1,
}

interface IGroupMember extends IUser {
  role: GroupRole;
}

interface IGroupListItem {
  avatar: string;
  CreatedAt: string;
  id: number;
  name: string;
  sessionId: string;
  numberId: number;
  description: string;
  bgImage: string;
  ownerId: number;
}

interface IGroupMemberInfo {
  id: number;
  avatar: string;
  name: string;
  role: number;
  uuid: string;
  address: string;
  sign: string;
  birthdate: string;
  gender: number;
  bgImage: string;
}

interface IUpdateGroupInfoParams {
  groupId: number;
  name: string;
  avatar: string;
  description: string;
}

export type { IGroupListItem, IGroupMember, IGroupMemberInfo, IUpdateGroupInfoParams };
